package online.sixfish.doubao.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import lombok.Data;

import java.util.Date;
@Data
public class StudyGuide {


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * markdown
     */
    @TableField("`content`")
    private String content;

    /**
     * 作者ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 评论数
     */
    @TableField("comments")
    private Integer comments = 0;

    /**
     * 收藏数
     */
    @TableField("collects")
    private Integer collects = 0;

    /**
     * 浏览数
     */
    @TableField("view")
    private Integer view = 0;


    /**
     * 置顶
     */
    @TableField("top")
    private Boolean top = false;

    /**
     * 加精
     */
    @TableField("essence")
    private Boolean essence = false;

    private Integer status;
    private Integer type;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;
}
